package com.aaa.jur.service.impl;

import com.aaa.common.entity.User;
import com.aaa.jur.dao.UserDao;
import com.aaa.jur.service.UserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author AAATeacherChen
 * @since 2020-06-14
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {
    @Autowired
    UserDao dao;
    @Override
    public List<Map> selectUser(Integer page, Integer limit) {
        page = (page-1)*limit;
        List<Map> maps = dao.selectUser(page, limit);
        return maps;
    }
}
